package com.yisu.auction.manager.core.mapper;

import com.yisu.auction.ewf.entity.OfferPriceLog;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface OfferPriceLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OfferPriceLog record);

    int insertSelective(OfferPriceLog record);

    OfferPriceLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OfferPriceLog record);

    int updateByPrimaryKey(OfferPriceLog record);

    /**
     * author:赵杰
     * Business Description : 通过日期获取当日竞拍新用户数
     * @param date
     * @return
     */
    int getTodayAuctionNewMemberByDate(@Param("date") String date);

    /**
     * author:赵杰
     * Business Description : 通过日期获取当日竞拍用户总数
     * @param
     * @return
     */
    int getCurrentDayAuctionMemberCount(@Param("date") String date);


    /**
     * author:赵杰
     * Business Description : 通过日期获取当日消费总金额
     * @param
     * @return
     */
    BigDecimal getCurrentDayBuyMoney(@Param("date") String date);

    /**
     * author:赵杰
     * Business Description : 通过日期获取当日新用户消费总金额
     * @param
     * @return
     */
    BigDecimal getCurrentDayBuyMoneyForNew(@Param("date") String date);
}